import React, { Component } from 'react'
import { HashRouter, Route, Redirect, Switch } from 'react-router-dom'
import Film from './view/film'
import Center from './view/center'
export default class index extends Component {
    render() {
        return (
            <HashRouter>
                <Switch>
                    <Route path='/film/:id' component={Film}></Route>
                    <Route path='/center' component={Center}></Route>
                    {/* <Route path='/center/:id' component={Center}></Route> */}
                    <Redirect from='/' to='film'></Redirect>
                </Switch>
            </HashRouter>
        )
    }
}
